package cn.b.sky.mes.cm.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import cn.b.sky.mes.cm.model.ProcessCapacity;


public interface ProcessCapacityDao {
  
  /**
   * 
   * <strong>Title : selectProcessCapacityByProcessOperationId<br></strong>
   * <strong>Description : </strong>获取工艺工序作业单元产能<br> 
   * <strong>Create on : 2016-8-15 上午10:22:24<br></strong>
   * <p>
   * @param id
   * @return
   * List<ProcessCapacity>
   * @throws 
   * @author JinQuan.Fu<br>
   * @version <strong>v1.0.0</strong><br>
   * <br>
   * <strong>修改历史:</strong><br>
   * 修改人 | 修改日期 | 修改描述<br>
   * -------------------------------------------<br>
   * <br>
   * <br>
   */
  public List<ProcessCapacity> selectProcessCapacityByProcessOperationId(Integer id);
  
  /**
   * 
   * <strong>Title : selectProcessCapacityByPk<br></strong>
   * <strong>Description : </strong>通过pk查询作业单元产能<br> 
   * <strong>Create on : 2016-8-15 上午10:22:40<br></strong>
   * <p>
   * @param popId
   * @param componentCode
   * @return
   * ProcessCapacity
   * @throws 
   * @author JinQuan.Fu<br>
   * @version <strong>v1.0.0</strong><br>
   * <br>
   * <strong>修改历史:</strong><br>
   * 修改人 | 修改日期 | 修改描述<br>
   * -------------------------------------------<br>
   * <br>
   * <br>
   */
  public ProcessCapacity selectProcessCapacityByPk(@Param("popId") Integer popId,
      @Param("siteCode") String siteCode, @Param("workUnitCode") String workUnitCode);
  
  /**
   * 
   * <strong>Title : insertProcessCapacity<br></strong>
   * <strong>Description : </strong>添加工序作业单元产能<br> 
   * <strong>Create on : 2016-8-15 上午10:23:01<br></strong>
   * <p>
   * @param capacity
   * void
   * @throws 
   * @author JinQuan.Fu<br>
   * @version <strong>v1.0.0</strong><br>
   * <br>
   * <strong>修改历史:</strong><br>
   * 修改人 | 修改日期 | 修改描述<br>
   * -------------------------------------------<br>
   * <br>
   * <br>
   */
  public void insertProcessCapacity(ProcessCapacity capacity);
  
  /**
   * 
   * <strong>Title : updateProcessCapacity<br></strong>
   * <strong>Description : </strong>添加工序作业单元产能<br> 
   * <strong>Create on : 2016-8-15 上午10:23:58<br></strong>
   * <p>
   * @param capacity
   * void
   * @throws 
   * @author JinQuan.Fu<br>
   * @version <strong>v1.0.0</strong><br>
   * <br>
   * <strong>修改历史:</strong><br>
   * 修改人 | 修改日期 | 修改描述<br>
   * -------------------------------------------<br>
   * <br>
   * <br>
   */
  public void updateProcessCapacity(ProcessCapacity capacity);
  
  /**
   * 
   * <strong>Title : deleteProcessCapacityByPk<br></strong>
   * <strong>Description : </strong>删除单个工序作业单元产能<br> 
   * <strong>Create on : 2016-8-15 上午10:24:10<br></strong>
   * <p>
   * @param processOperationId
   * @param siteCode
   * @param workUnitCode
   * void
   * @throws 
   * @author JinQuan.Fu<br>
   * @version <strong>v1.0.0</strong><br>
   * <br>
   * <strong>修改历史:</strong><br>
   * 修改人 | 修改日期 | 修改描述<br>
   * -------------------------------------------<br>
   * <br>
   * <br>
   */
  public void deleteProcessCapacityByPk(@Param("processOperationId") Integer processOperationId,
      @Param("siteCode") String siteCode, @Param("workUnitCode") String workUnitCode);
  
  /**
   * 
   * <strong>Title : deleteProcessComponentByProcessOperationId<br></strong>
   * <strong>Description : </strong>删除某一类工序作业单元产能，删除工艺工序的时候使用<br> 
   * <strong>Create on : 2016-8-15 上午10:24:42<br></strong>
   * <p>
   * @param id
   * void
   * @throws 
   * @author JinQuan.Fu<br>
   * @version <strong>v1.0.0</strong><br>
   * <br>
   * <strong>修改历史:</strong><br>
   * 修改人 | 修改日期 | 修改描述<br>
   * -------------------------------------------<br>
   * <br>
   * <br>
   */
  public void deleteProcessCapacityByProcessOperationId(Integer id);
}
